<#macro layout>
<!DOCTYPE html>
<html lang="zh">
<head>
<base href="${CONTEXT_PATH}/" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- bootstrap - css -->
<link href="static/lib/BJUI/themes/css/bootstrap.min.css" rel="stylesheet">
<!-- core - css -->
<link href="static/lib/BJUI/themes/css/style.css" rel="stylesheet">
<link href="static/lib/BJUI/themes/purple/core.css" id="bjui-link-theme" rel="stylesheet">
<!-- plug - css -->
<link href="static/lib/BJUI/plugins/kindeditor_4.1.10/themes/default/default.css" rel="stylesheet">
<link href="static/lib/BJUI/plugins/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="static/lib/BJUI/plugins/niceValidator/jquery.validator.css" rel="stylesheet">
<link href="static/lib/BJUI/plugins/bootstrapSelect/bootstrap-select.css" rel="stylesheet">
<link href="static/lib/BJUI/themes/css/FA/css/font-awesome.min.css" rel="stylesheet">
<!--[if lte IE 7]>
<link href="static/lib/BJUI/themes/css/ie7.css" rel="stylesheet">
<![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lte IE 9]>
    <script src="static/lib/BJUI/other/html5shiv.min.js"></script>
    <script src="static/lib/BJUI/other/respond.min.js"></script>
<![endif]-->
<!-- jquery -->
<script src="static/lib/BJUI/js/jquery-1.7.2.min.js"></script>
<script src="static/lib/BJUI/js/jquery.cookie.js"></script>
<!--[if lte IE 9]>
<script src="static/lib/BJUI/other/jquery.iframe-transport.js"></script>    
<![endif]-->
<!-- BJUI.min 分模块压缩版 -->
<!--  
<script src="static/lib/BJUI/js/b-jui.all.js"></script>
-->
<!-- 以下是B-JUI的分模块未压缩版，建议开发调试阶段使用下面的版本 -->
<script src="static/lib/BJUI/js/bjui-core.js"></script>
<script src="static/lib/BJUI/js/bjui-regional.zh-CN.js"></script>
<script src="static/lib/BJUI/js/bjui-frag.js"></script>
<script src="static/lib/BJUI/js/bjui-extends.js"></script>
<script src="static/lib/BJUI/js/bjui-basedrag.js"></script>
<script src="static/lib/BJUI/js/bjui-slidebar.js"></script>
<script src="static/lib/BJUI/js/bjui-contextmenu.js"></script>
<script src="static/lib/BJUI/js/bjui-navtab.js"></script>
<script src="static/lib/BJUI/js/bjui-dialog.js"></script>
<script src="static/lib/BJUI/js/bjui-taskbar.js"></script>
<script src="static/lib/BJUI/js/bjui-tablefixed.js"></script>
<script src="static/lib/BJUI/js/bjui-alertmsg.js"></script>
<script src="static/lib/BJUI/js/bjui-pagination.js"></script>
<script src="static/lib/BJUI/js/bjui-util.date.js"></script>
<script src="static/lib/BJUI/js/bjui-datepicker.js"></script>
<script src="static/lib/BJUI/js/bjui-spinner.js"></script>
<script src="static/lib/BJUI/js/bjui-theme.js"></script>
<script src="static/lib/BJUI/js/bjui-ajaxtab.js"></script>
<script src="static/lib/BJUI/js/bjui-tabledit.js"></script>
<script src="static/lib/BJUI/js/bjui-lookup.js"></script>
<script src="static/lib/BJUI/js/bjui-tags.js"></script>
<script src="static/lib/BJUI/js/bjui-ajax.js"></script>
<script src="static/lib/BJUI/js/bjui-initui.js"></script>
<script src="static/lib/BJUI/js/bjui-upload.js"></script>
<script src="static/lib/BJUI/js/bjui-plugins.js"></script>
<!-- plugins -->
<!-- swfupload for uploadify && kindeditor -->
<script src="static/lib/BJUI/plugins/swfupload/swfupload.js"></script>
<!-- kindeditor -->
<script src="static/lib/BJUI/plugins/kindeditor_4.1.10/kindeditor-all.min.js"></script>
<script src="static/lib/BJUI/plugins/kindeditor_4.1.10/lang/zh_CN.js"></script>
<!-- colorpicker -->
<script src="static/lib/BJUI/plugins/colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- ztree -->
<script src="static/lib/BJUI/plugins/ztree/jquery.ztree.all-3.5.js"></script>
<!-- nice validate -->
<script src="static/lib/BJUI/plugins/niceValidator/jquery.validator.js"></script>
<script src="static/lib/BJUI/plugins/niceValidator/jquery.validator.themes.js"></script>
<!-- bootstrap plugins -->
<script src="static/lib/BJUI/plugins/bootstrap.min.js"></script>
<script src="static/lib/BJUI/plugins/bootstrapSelect/bootstrap-select.min.js"></script>
<!-- icheck -->
<script src="static/lib/BJUI/plugins/icheck/icheck.min.js"></script>
<!-- dragsort -->
<script src="static/lib/BJUI/plugins/dragsort/jquery.dragsort-0.5.1.min.js"></script>
<!-- other plugins -->
<script src="static/lib/BJUI/plugins/other/jquery.autosize.js"></script>
<link href="static/lib/BJUI/plugins/uploadify/css/uploadify.css" rel="stylesheet">
<script src="static/lib/BJUI/plugins/uploadify/scripts/jquery.uploadify.min.js"></script>

<!-- init -->
<script type="text/javascript">
$(function() {
    BJUI.init({
        loginInfo  : {url:'logintimeout.html', title:'登录', width:300, height:200}, // 弹出登录对话框
        statusCode : {ok:200, error:300, timeout:301}, //[可选]
        pageInfo   : {pageCurrent:'pageCurrent', pageSize:'pageSize', orderField:'orderField', orderDirection:'orderDirection'}, //[可选]
        keys       : {statusCode:'statusCode', message:'message'}, //[可选]
        ui         : {hideMode:'display'}, //[可选]hideMode:navtab组件切换的隐藏方式，支持的值有’display’，’offsets’负数偏移位置的值，默认值为’display’
        debug      : true,    // [可选]调试模式 [true|false，默认false]
        theme      : 'purple' // 若有Cookie['bjui_theme'],优先选择Cookie['bjui_theme']。皮肤[五种皮肤:default, orange, purple, blue, green]
    })
    //时钟
    var today = new Date(), time = today.getTime()
    $('#bjui-date').html(today.formatDate('yyyy/MM/dd'))
    setInterval(function() {
        today = new Date(today.setSeconds(today.getSeconds() + 1))
        $('#bjui-clock').html(today.formatDate('HH:mm:ss'))
    }, 1000)
})

//console.log('IE:'+ (!$.support.leadingWhitespace))
//菜单-事件
function MainMenuClick(event, treeId, treeNode) {
    if (treeNode.isParent) {
        var zTree = $.fn.zTree.getZTreeObj(treeId)
        
        zTree.expandNode(treeNode)
        return
    }
    
    if (treeNode.target && treeNode.target == 'dialog')
        $(event.target).dialog({id:treeNode.tabid, url:treeNode.url, title:treeNode.name})
    else
        $(event.target).navtab({id:treeNode.tabid, url:treeNode.url, title:treeNode.name})
}
</script>

</head>
<body>
    <!--[if lte IE 7]>
        <div id="errorie"><div>您还在使用老掉牙的IE，正常使用系统前请升级您的浏览器到 IE8以上版本 <a target="_blank" href="http://windows.microsoft.com/zh-cn/internet-explorer/ie-8-worldwide-languages">点击升级</a>&nbsp;&nbsp;强烈建议您更改换浏览器：<a href="http://down.tech.sina.com.cn/content/40975.html" target="_blank">谷歌 Chrome</a></div></div>
    <![endif]-->
    
	 <!-- 页头 -->
	 <header class="navbar navbar-default" id="bjui-header">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bjui-navbar-collapse">
                <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#"><img src="static/img/logo.png"></a>
        </div>
        <nav class="collapse navbar-collapse" id="bjui-navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li class="datetime"><div><span id="bjui-date"></span><br><i class="fa fa-clock-o"></i> <span id="bjui-clock"></span></div></li>
                <li><a href="http://b-jui.com/doc/" target="_blank">B-JUI在线文档</a></li>
                <li><a href="#">消息 <span class="badge">4</span></a></li>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">我的账户 <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="changepwd.html" data-toggle="dialog" data-id="changepwd_page" data-mask="true" data-width="400" data-height="260">&nbsp;<span class="glyphicon glyphicon-lock"></span> 修改密码&nbsp;</a></li>
                        <li><a href="#">&nbsp;<span class="glyphicon glyphicon-user"></span> 我的资料</a></li>
                        <li class="divider"></li>
                        <li><a href="login.html" class="red">&nbsp;<span class="glyphicon glyphicon-off"></span> 注销登陆</a></li>
                    </ul>
                </li>
                <li class="dropdown"><a href="#" class="dropdown-toggle theme purple" data-toggle="dropdown"><i class="fa fa-tree"></i></a>
                    <ul class="dropdown-menu" role="menu" id="bjui-themes">
                        <li><a href="javascript:;" class="theme_default" data-toggle="theme" data-theme="default">&nbsp;<i class="fa fa-tree"></i> 黑白分明&nbsp;&nbsp;</a></li>
                        <li><a href="javascript:;" class="theme_orange" data-toggle="theme" data-theme="orange">&nbsp;<i class="fa fa-tree"></i> 橘子红了</a></li>
                        <li class="active"><a href="javascript:;" class="theme_purple" data-toggle="theme" data-theme="purple">&nbsp;<i class="fa fa-tree"></i> 紫罗兰</a></li>
                        <li><a href="javascript:;" class="theme_blue" data-toggle="theme" data-theme="blue">&nbsp;<i class="fa fa-tree"></i> 青出于蓝</a></li>
                        <li><a href="javascript:;" class="theme_green" data-toggle="theme" data-theme="green">&nbsp;<i class="fa fa-tree"></i> 绿草如茵</a></li>
                    </ul>
                </li>
            </ul>
        </nav>
    </header>
	
	<#nested>
    
    <!-- 页脚 -->
    <footer id="bjui-footer">Copyright &copy; 2013 - 2014 <a href="http://xknaan.com" target="_blank">K'naan</a>(xknaan@163.com)　<a href="http://b-jui.com/" target="_blank">B-JUI 前端框架</a>　
    </footer>
    
</body>
</html>
</#macro>